package com.jy.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet("/user/*")
public class UserServlet extends BaseServlet {
    protected void cart(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("用户访问购物车");
    }

    protected void info(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("用户访问个人信息");
    }

    protected void order(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("用户访问我的订单");
    }
}
